import {
  SET_FOCUS_MODE,
  SAVE_CLIENT_SIZE,
} from "@/store/mutations-types"

const settings = {
  state: {
    //专注模式
    focusMode: false,
    //可视窗口大小
    clientSize: {
      clientHeight: 0,
      clientWidth: 1080
    }
  },

  mutations: {
    [SET_FOCUS_MODE] (state, focusMode) {
      state.focusMode = focusMode
    },
    [SAVE_CLIENT_SIZE] (state, clientSize) {
      state.clientSize = clientSize
    },
  },

  actions: {
  }
}

export default settings